{% extends 'base.html' %}
{% load static %}
{% block title %}修改密码{% endblock %}
{% block css %}
    <link rel="stylesheet" href="{% static 'css/register.css' %}">
{% endblock %}

{% block content %}
    <div class="container">
        <div class="col-md-4 col-md-offset-4">
          <form class='form-register' action="/changepassword/" method="post">
 
              {% if message %}
                  <div class="alert alert-warning">{{ message }}</div>
              {% endif %}
 
              {% csrf_token %}
 
              <h2 class="text-center">修改密码</h2>
              <div class="form-group">
                  {{ changepassword_form.password.label_tag }}
                  {{ changepassword_form.password}}
              </div>
              <div class="form-group">
                  {{ changepassword_form.password1.label_tag }}
                  {{ changepassword_form.password1 }}
              </div>
              <div class="form-group">
                   {{ changepassword_form.password2.label_tag }}
                  {{ changepassword_form.password2 }}
              </div>
              <button type="reset" class="btn btn-default pull-left">重置</button>
              <button type="submit" class="btn btn-primary pull-right">提交</button>
 
          </form>
        </div>
    </div> <!-- /container -->
{% endblock %}